﻿package com.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.entity.Admin;

@Repository
public class AdminDAO extends BaseDAO<Admin> {
	
	public final static String USER_NAME = "userName";
	
	public AdminDAO() {
		super(Admin.class);
	}
	
	public List<Admin> findByUserName(String userName){
		return super.findByProperty(USER_NAME, userName, null);
	}

}
